package com.ruoyi.eqmonitor.mapper;

import java.util.Collection;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.eqmonitor.domain.OptDeviceMonitorLastData;
import com.ruoyi.eqmonitor.dtos.OptDeviceMonitorLastDataDto;
import com.ruoyi.eqmonitor.vo.OptDeviceMonitorLastDataVo;
import org.apache.ibatis.annotations.Param;


/**
 * @author ruoyi
 * @date 2022-11-25
 */
public interface OptDeviceMonitorLastDataMapper extends BaseMapper<OptDeviceMonitorLastData>{

    public List<OptDeviceMonitorLastData> selectOptDeviceMonitorLastDataList(OptDeviceMonitorLastData optDeviceMonitorLastData);

    public OptDeviceMonitorLastData selectOptDeviceMonitorLastDataById(@Param("id") Long id, @Param("wsgPointTableName") String wsgPointTableName);

    public int saveOrUpdateMonitorLastData(@Param("listData") Collection<OptDeviceMonitorLastData> listData);

    List<OptDeviceMonitorLastDataDto>  getInfoByPumpId(@Param("id")Integer id, @Param("date")String date, @Param("hour")int hour);

    List<OptDeviceMonitorLastDataVo> selectOptDeviceMonitorLastDataPage(OptDeviceMonitorLastDataVo optDeviceMonitorLastData);
}
